package top.anydata.lifeofcode.lifesystem.web.requests.api;

import jakarta.persistence.Enumerated;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.sql.Timestamp;

/**
 * 功能描述:
 *
 * @author <a href="mailto:caingao@anydata.top">CainGao</a>
 * @version V_1.0
 * @date 2024/5/8 3:33 PM
 */
public class AppUserSignupRequest {
    @NotNull
    @Size(min = 11, max = 11)
    //手机号{通过自动获取手机号登录,或者通过验证码登录成功后获取.}
    private String phoneNum;
    @NotNull
    @Size(min = 6, max = 18)
    //用户名{自行设置,真实姓名}
    private String userName;
    @NotNull
    @Size(min = 6, max = 18)
    //昵称{自行设置,昵称}
    private String nickName;
    @NotNull
    @Min(0)
    @Max(1)
    //男女{自行选择,不可更改}
    private Integer gender;
    @NotNull
    //生日{自行选择,不可更改}
    private Timestamp birthDay;
    @NotNull
    //头像
    private String avatarUrl;

}
